package net.sppan.base.dao;

import net.sppan.base.dao.support.IBaseDao;
import net.sppan.base.entity.mgEntity.MgUser;
import net.sppan.base.entity.mgEntity.MgUserAward;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IMgUserAwardDao extends IBaseDao<MgUserAward,Integer> {

    List<MgUserAward> findByUserIdAndSourceType(int userId,String sourceType);
    List<MgUserAward> findByUserId(int userId);


}
